#!/usr/bin/env python3

prompt="Please type input num for Sum, using space spilt:\n"
nums=input(prompt)
total=0
for num in nums.split():
    try:
        total += int(num)
    except ValueError:
        print("Sorry, your type isn't num!")
        exit(1)
    else:
        pass

print(f"Sum is:{total}")
